/*
* @Author: liqs
* @Date:   2021/10/13 11:20
 */
package main

import (
	"github.com/gin-gonic/gin"
)

// ref https://github.com/gin-gonic/gin
func main() {

	r := gin.Default()
	r.GET("/ping", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "pong",
		})
		//c.JSON(200, gin.H{
		//	"feature": string(bytes),
		//})
	})
	r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}
